work done by variable force animation